package com.tanhua.dubbo.mappers;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanhua.model.domain.Announcements;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface AnnouncementsMapper extends BaseMapper<Announcements> {

  @Select("SELECT * FROM tb_announcement limit #{page},#{pagesize}")
   List<Announcements> find(@Param("page") Integer page, @Param("pagesize")Integer pagesize);
}
